home *** CD-ROM | disk | FTP | other *** search
/ Flash MX Savvy / FlashMX Savvy.iso / pc / WIN / UltraDev / UltraDev_Trial.exe / Disk1 / data1.cab / Configuration_En / Floaters / LessonFloater.js < prev    next >
Encoding:
JavaScript  |  2000-12-11  |  1.4 KB  |  54 lines

  1. // Copyright 1999 Macromedia, Inc. All rights reserved
  2.  
  3. //---------------    API FUNCTIONS   ---------------
  4.  
  5. function isAvailableInCodeView() {
  6.     return true;
  7. }
  8.  
  9. //---------------    LOCAL FUNCTIONS   ---------------
  10.  
  11. // Force the initial size of this floater, just the first
  12. // time it is ever opened (have to do it in initialTabs(), 
  13. // because floaters don't currently get onLoad events).
  14. function initialTabs() {
  15.   window.resizeTo(310,480);
  16.   return ""; // don't actually tab with anything else
  17. }
  18.  
  19. // We don't want this to be a tabbed palette
  20. function isDockable() {
  21.   return false;
  22. }
  23.  
  24. // THE FOLLOWING CODE IS NO LONGER USED
  25. /*
  26. function selectionChanged() {
  27.   alert("selectionChanged");
  28.   lessonNum = dw.constructor.lessonNumber;
  29.   if (lessonNum == 1) {
  30.     document.Lesson2.visibility = "hidden";
  31.     document.Lesson1.visibility = "visible";
  32.   }
  33.   else if (lessonNum == 2) {
  34.     document.Lesson1.visibility = "hidden";
  35.     document.Lesson2.visibility = "visible";
  36.   }  
  37. }
  38.  
  39. // Set this floater to not be dockable (ie. don't show floater tab)
  40. function isDockable() {
  41.   alert("isDockable");
  42.   lessonNum = dw.constructor.lessonNumber;
  43.   if (lessonNum == 1) {
  44.     document.Lesson2.visibility = "hidden";
  45.     document.Lesson1.visibility = "visible";
  46.   }
  47.   else if (lessonNum == 2) {
  48.     document.Lesson1.visibility = "hidden";
  49.     document.Lesson2.visibility = "visible";
  50.   }
  51.  
  52.   return false;
  53. }
  54. */